/*
 * testactivity.cpp
 *
 *  Created on: 12 Nis 2012
 *      Author: hframe
 */

#include "testactivity.h"
#include "../ui/widget/rectangle.h"
#include "../ui/widget/triangle.h"
#include "../drawing/point.h"
#include "../drawing/color.h"

namespace androidplus {
using namespace androidplus::ui::widget;
using namespace androidplus::drawing;


testactivity::testactivity():nativeactivity2D(0,0) {
	color back(0.6,0.2,0.9);
	background=back;

	float triangleCoords[] = {
	            // X, Y, Z
	            -0.5f, -0.25f, 0,
	             0.5f, -0.25f, 0,
	             0.0f,  0.559016994f, 0
	        };

	  drawing::point first(-50.0f,-50.0f,0.0f);
	  drawing::point second(0.0f,50.0f,0.0f);
	  drawing::point third(50.0f,-50.0f,0.0f);
	  androidplus::ui::widget::triangle *triangle=new androidplus::ui::widget::triangle(first,second,third);
	  triangle->pen_color=color(0.8,0.7,0.8);
	  child=triangle;

}

testactivity::~testactivity() {

}

} /* namespace androidplus */
